package com.mes.data.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.mes.data.mapper.SensorListMapper;
import com.mes.data.domain.SensorList;
import com.mes.data.service.ISensorListService;

/**
 * 传感器采集Service业务层处理
 * 
 * @author itflash
 * @date 2025-02-27
 */
@Service
public class SensorListServiceImpl implements ISensorListService 
{
    @Autowired
    private SensorListMapper sensorListMapper;

    /**
     * 查询传感器采集
     * 
     * @param id 传感器采集主键
     * @return 传感器采集
     */
    @Override
    public SensorList selectSensorListById(Long id)
    {
        return sensorListMapper.selectSensorListById(id);
    }

    /**
     * 查询传感器采集列表
     * 
     * @param sensorList 传感器采集
     * @return 传感器采集
     */
    @Override
    public List<SensorList> selectSensorListList(SensorList sensorList)
    {
        return sensorListMapper.selectSensorListList(sensorList);
    }

    /**
     * 新增传感器采集
     * 
     * @param sensorList 传感器采集
     * @return 结果
     */
    @Override
    public int insertSensorList(SensorList sensorList)
    {
        return sensorListMapper.insertSensorList(sensorList);
    }

    /**
     * 修改传感器采集
     * 
     * @param sensorList 传感器采集
     * @return 结果
     */
    @Override
    public int updateSensorList(SensorList sensorList)
    {
        return sensorListMapper.updateSensorList(sensorList);
    }

    /**
     * 批量删除传感器采集
     * 
     * @param ids 需要删除的传感器采集主键
     * @return 结果
     */
    @Override
    public int deleteSensorListByIds(Long[] ids)
    {
        return sensorListMapper.deleteSensorListByIds(ids);
    }

    /**
     * 删除传感器采集信息
     * 
     * @param id 传感器采集主键
     * @return 结果
     */
    @Override
    public int deleteSensorListById(Long id)
    {
        return sensorListMapper.deleteSensorListById(id);
    }
}
